package com.GUI;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class Register extends Activity {
       
    /** Called when the activity is first created. */
    // @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        /* for register
         * */
        // The layout resides in res/layout/login.xml;
        setContentView(R.layout.register);        
        // Get the pointer to the widgets;
        final EditText userName = (EditText)this.findViewById(R.id.rg_edtName);
        final EditText passWord = (EditText)this.findViewById(R.id.rg_edtPassword);
        final EditText pswCopy = (EditText)this.findViewById(R.id.rg_edtCPsw);
        final Button okButton = (Button)this.findViewById(R.id.rg_btnOk);        
        final Button clButton = (Button)this.findViewById(R.id.rg_btnCancel);     
        // Set proper text size;
        userName.setTextSize(10);
        passWord.setTextSize(10);          
        
        // textInput and textOutput will be cleared when the clear button is clicked.
        okButton.setOnClickListener(new Button.OnClickListener() {
       		public void onClick(View v) {       			
       			//MyTab mytab = new MyTab();
       			Intent intent = new Intent();
       			intent.setClass(Register.this,Login.class);
       			startActivity(intent);       			
       		}
        });
        
        clButton.setOnClickListener(new Button.OnClickListener() {
       		public void onClick(View v) {
       			Intent intent = new Intent();
       			intent.setClass(Register.this,Login.class);
       			startActivity(intent);   
       		}
        });  
        
    }
}
